<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>React - this.props.children</title>
	<script src="../build/react.js"></script>
	<script src="../build/react-dom.js"></script>
	<script src="../build/browser.min.js"></script>
</head>
<style>
	*{
		margin: 0px;
		padding: 0px;
		border: 0px;
		
	}
	.colo{
		font-size:44px;
		color: brown;
	}
</style>
<body>
	<div id="container"></div>
	<script type="text/babel">
		var NodeList = React.createClass({
			render: function(){
				return (
					<ol>
						{
							React.Children.map(this.props.children, function(child){
									return <li className="colo"> {child} </li>
							})
						}
					</ol>	
				)
			}
		});
		ReactDOM.render(
			<NodeList>
				<span>Hello</span>
				<span>World!</span>
			</NodeList>,
			document.getElementById('container')
			)
	</script>
</body>
</html>